<div class="clearfix mb30" >
  <fieldset class="inter-line mb5">
    <a href="javascript:;" event-node="change_related_new_post" rel="0" event-args="uid=<?php echo ($uid); ?>&max=<?php echo ($max); ?>&weiba_id=<?php echo ($weiba_id); ?>" id="change_related_new_post" class="right"><i class="ico-refresh"></i></a>
    <legend class="inter-txt"><?php echo ($title); ?></legend>
  </fieldset>
  <ul model-node="related_new_post" class="weiba-post-list">
    <?php if(is_array($topic_list)): ?><?php $i = 0;?><?php $__LIST__ = $topic_list?><?php if( count($__LIST__)==0 ) : echo "" ; ?><?php else: ?><?php foreach($__LIST__ as $key=>$vo): ?><?php ++$i;?><?php $mod = ($i % 2 )?><li>
      <a href="<?php echo U('weiba/Index/postDetail',array('post_id'=>$vo['post_id']));?>"><i class="ico-dot1"></i><?php echo (getshort($vo["title"],14)); ?></a>
      </li><?php endforeach; ?><?php endif; ?><?php else: echo "" ;?><?php endif; ?>
  </ul>
</div>
<script type="text/javascript">
// 事件绑定
M.addEventFns({
    // 换一换操作
    change_related_new_post: {
        click: function() {
            var args = M.getEventArgs(this);
            var _model = M.getModels('related_new_post');
            $.post("<?php echo U('widget/LatestPost/changeRelate','app_widget=weiba');?>", {uid:args.uid, max:args.max,weiba_id:args.weiba_id}, function(data) {
                $(_model[0]).html(data);
                M($(_model)[0]);
            }, 'json');
            return false ;
        }
    }
});
</script>